package com.kmis.entities;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.sql.Timestamp;
import java.lang.Boolean;
import java.lang.String;
import java.lang.Integer;

/**
 * 文章实体类。
 *
 * @author MLB
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "", description = "")
@Table(value = "tbl_article")
public class Article {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 文章标题
     */
    @ApiModelProperty(value = "文章标题")
    @Column(value = "title")
    private String title;

    /**
     * 文章内容
     */
    @ApiModelProperty(value = "文章内容")
    @Column(value = "content")
    private String content;

    /**
     * 文章作者
     */
    @ApiModelProperty(value = "文章作者")
    @Column(value = "author")
    private String author;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(value = "create_time")
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @Column(value = "update_time")
    private Timestamp updateTime;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间")
    @Column(value = "publication_time")
    private Timestamp publicationTime;

    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id")
    @Column(value = "category_id")
    private Integer categoryId;

    /**
     * 浏览次数
     */
    @ApiModelProperty(value = "浏览次数")
    @Column(value = "views")
    private Integer views;

    /**
     * 点赞数
     */
    @ApiModelProperty(value = "点赞数")
    @Column(value = "likes")
    private Integer likes;

    /**
     * 评论数
     */
    @ApiModelProperty(value = "评论数")
    @Column(value = "comments")
    private Integer comments;

    /**
     * 文章状态，0是草稿，1是已发布，2是已删除
     */
    @ApiModelProperty(value = "文章状态，0是草稿，1是已发布，2是已删除")
    @Column(value = "status")
    private Boolean status;

    /**
     * 文章所属部门id
     */
    @ApiModelProperty(value = "文章所属部门id")
    @Column(value = "dep_id")
    private Integer depId;

    /**
     * 逻辑删除字段
     */
    @ApiModelProperty(value = "逻辑删除字段")
    @Column(value = "del_flg")
    private Integer delFlg;


}
